<?php if ($categories):?>
<?php foreach($categories as $categorie):?>
<li class=categories><?php echo link_to( $categorie->getCategoriesName() , 'categories/subcategories?parent='.$categorie->getCategoriesId())?></li><br />
<?php endforeach; ?>
<?php endif; ?>